﻿@using DevM.Web.Models.Common.Modals
@using DevM.Development.DataMigration.Dto
@model DevM.Web.Models.ReleaseRecord.EditReleaseLogViewModel
@{
    Layout = null;
}
@await Html.PartialAsync("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("Log")))

<style>
    .add-resource-container .input-group {
        margin-bottom: 0px;
    }
    .resource-name{
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
</style>

<div class="modal-body">
    <form name="releaseShowForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.ReleaseLog.Id" />
        <ul class="nav nav-tabs tab-nav-right" role="tablist">
            <li role="presentation" class="active"><a href="#edit-feedback-details" data-toggle="tab">@L("ReleaseLogDetails")</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane animated fadeIn active" id="edit-feedback-details">
                <div class="row clearfix">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <textarea type="text" name="Log" class="form-control" maxlength="2000">@Model.ReleaseLog.Log</textarea>
                                <label class="form-label">@L("Log")</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-12">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <textarea type="text" name="Memo" class="form-control" maxlength="200">@Model.ReleaseLog.Memo</textarea>
                                <label class="form-label">@L("Memo")</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

@await Html.PartialAsync("~/Views/Shared/Modals/_ModalFooterWithCancel.cshtml")

<script src="~/view-resources/Views/ReleaseRecords/_EditReleaseLogModal.js" asp-append-version="true"></script>
